import request from '../utils/request'

export const userinfo = () => {
    return request.get('/user/profile')
}

// 编辑用户个人资料（包含实名认证）
export const editProfile = data => {
    return request({
      url: '/user/profile',
      data,
      method: 'PATCH'
    })
  }